<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>发表新文章-清风品道</title>
<script type="text/javascript">
	function FCKeditor_OnComplete(editorInstance) {
		//window.status = editorInstance.Description;
	}
</script>
</head>
<body>
	<%@ include file="nav.jsp" %>
	<%
		String permission = (String)session.getAttribute("permission");
	%>
	<%
		if(permission == null || !permission.equals("a")) {
	%>
	<p style="color:red">您没有权限</p>
	<% } else { %>
	<form action="NewGiftServlet" method="post">
		<table align="center">
			<caption>发表新文章</caption>
			<tr>
				<td align="right"><label>标题</label></td>
				<td align="left"><input type="text" id="title" name="title" /></td>
			</tr>
			<!-- <tr>
				<td align="right"><label>信息来源</label></td>
				<td align="left"><input type="text" id="source" name="source" value="清风品道" /></td>
			</tr> -->
			<tr valign="top">
				<td align="right"><label>正文</label></td>
				<td align="left"><FCK:editor instanceName="content" width="700px" height="500px"></FCK:editor></td>
			</tr>
			<tr>
				<td></td>
				<td align="left"><input type="submit" value="保存" /></td>
			</tr>
		</table>
	</form>
	<% } %>
	<jsp:include page="./bottom.jsp"></jsp:include>
</body>
</html>